﻿using Abp.Domain.Entities.Auditing;
using FwProject.Core.Restaurant;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace FwProject.PrePaymentInfo
{
    [Table("ReceiptBySettlementInfo")]
    public class ReceiptInfoBySettlementModel : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 所属工厂
        /// </summary>
        [Display(Name = "所属工厂")]
        public Guid FactoryinfoId { get; set; }

        /// <summary>
        /// 收据单号
        /// </summary>
        public Guid SettlementId { get; set; }
        /// <summary>
        /// 收款单号
        /// </summary>
        public Guid ReceiptInfoId { get; set; }

        /// <summary>
        /// 应收回金额(WholeAmount-PreferentialAmount)
        /// </summary>
        public decimal ActualAmount { get; set; } = 0.0m;
        /// <summary>
        /// 使用预收款
        /// </summary>
        public decimal UsePrePayment { get; set; } = 0.0m;
        /// <summary>
        /// 本次实际收回金额
        /// </summary>
        public decimal TaskBackAmount { get; set; } = 0.0m;
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal PreferentialAmount { get; set; } = 0.0m;
        /// <summary>
        /// 未收金额
        /// </summary>
        public decimal TaskNotBackAmount { get; set; } = 0.0m;

        public ToVoidStatus ToVoidStatus { get; set; }
    }
    }
